package com.yixing.tech.common.vo.s6;


import java.util.Date;
import java.util.HashMap;
import java.util.List;

@lombok.Data
public class ProvisionedAlertRuleVO {

    private int id;
    private String uid;
    private int orgID;
    private String folderUID;
    private String ruleGroup;
    private String title;
    private String condition;
    private String refId;
    private String queryType;
    private String datasourceUid;
    private int from;
    private int to;
    private Date updated;
    private String noDataState;
    private String execErrState;
    private HashMap<String,Object> forfor;
    private String __dashboardUid__;
    private String __panelId__;
    private boolean isPaused;
    private Model model;

    class Model {

        private List<String> adhocFilters;
        private String alias;
        private Datasource datasource;
        private List<GroupBy> groupBy;
        private Boolean hide;
        private int intervalMs;
        private String limit;
        private int maxDataPoints;
        private String measurement;
        private String orderByTime;
        private String policy;
        private String query;
        private String refId;
        private String resultFormat;
        private List<List<Select>> select;
        private String slimit;
        private List<Tags> tags;
        private String tz;


    }
    class Datasource {
        private String type;
        private String uid;
    }

    class GroupBy {

        private List<String> params;
        private String type;


    }


  class  Select {

        private List<String> params;
        private String type;


    }


    class Tags {

        private String key;
        private String operator;
        private String value;


    }










}
